package com.lk.recvice.mq;

import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.DirectExchange;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DirectRabbitConfig {





    @Bean
    public Queue Devices_DirectQueue_Modbus_Client() {
        return new Queue("Devices_DirectQueue_Modbus_Client",true);
    }

    @Bean
    DirectExchange Devices_DirectExchange_Modbus_Client() {
        return new DirectExchange("Devices_DirectExchange_Modbus_Client",true,false);
    }

    @Bean
    Binding devices_bindingDirect_yq() {
        return BindingBuilder.bind(Devices_DirectQueue_Modbus_Client()).to(Devices_DirectExchange_Modbus_Client()).with("Devices_DirectRouting_Modbus_Client");
    }


}
